<template>
    <!-- 轮播图 -->
    <div class="swiper-com">
        <van-swipe class="my-swipe" :autoplay="1000" indicator-color="white">
            <van-swipe-item v-for="item in banner" :key="item.id" >
                <img :src="item.image_url" alt="">
            </van-swipe-item>
        </van-swipe>
    </div>
</template>

<script>
export default {
    name:'swiper-com',
    props:['banner'],

}
</script>

<style lang="less" scoped>
    .swiper-com{
        width: 100%;
        img{
            width: 100%;
        }
    }
</style>
